package com.yl.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yl.auth.model.entity.Cuoyi;
import com.yl.auth.model.entity.Xiaocuoyi;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ln
 * @since 2023-06-20
 */
public interface CuoyiMapper extends BaseMapper<Cuoyi> {

    Page<Cuoyi> getPageVo(Page<Cuoyi> iPage, @Param("hgname") String hgname, @Param("fbtime") String fbtime, @Param("type") String type, @Param("zhuangtai") Integer zhuangtai);

    Cuoyi getcuoyiById(@Param("id") Integer id);

    List<Cuoyi> getcuoyis();

    void updatezhuangtai(@Param("id")Integer id);

    void save(Xiaocuoyi cuoyi);
}
